home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 1997 #1
/
Amiga Plus CD - 1997 - No. 01.iso
/
pd
/
programmierung
/
proasm
/
rexx
/
ttx
/
nexterror.ttx
< prev
next >
Wrap
Text File
|
1996-04-29
|
1KB
|
48 lines
/******************************************************************************
ASX NextError Script for TurboText
© 1993 by Michael "TILT!" Ryffel
[some parts ripped from d.weber]
******************************************************************************
this script reports no errormessage if the active source is not yet assembled
this will probably be improved in a future release, but who cares....
******************************************************************************/
OPTIONS RESULTS /* uups... */
GETPORT /* get the arexx_port of */
ttx_port = result /* the active window */
GETFILEPATH /* get the filepath */
name = result
ADDRESS 'asx_rexx' /* address asx */
FindID 'TTX:'name /* find active source */
port = result /* get its port */
IF port ~='' THEN DO /* if ther is a port */
ADDRESS (''||port) /* address it */
NextError /* get the next error */
errortxt = result
ADDRESS (''||ttx_port) /* address active window */
IF errortxt ='' THEN DO /* if there are no more errors */
SETSTATUSBAR 'no more errors' /* write to windowtitlebar */
exit(0) /* skip the rest */
END
PARSE VALUE errortxt WITH 1 LineNumber ' : ' ErrorMsg /* get the linenumber and error */
SHOWFOLDS ALL /* show folds (to see errors) */
MOVE LineNumber 1 /* jump to errorline */
SETSTATUSBAR ErrorMsg /* write to windowtitlebar */
END